<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>

	<title>分类修改页</title>

</head>
<body>

<p align="center">
	<h2>分类修改页</h2>
	<a href="<?php echo U('index');?>">分类主页</a>
</p>
<form action="../category/add" method="post">
	分类名称:<input type="text" name="c_name" value="<?php echo ($info['c_name']); ?>">
	<br />
	上级权限:<select name="parent_id">
				<option value="0">|--顶级权限</option>
				<?php if(is_array($cate)): $i = 0; $__LIST__ = $cate;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option value="<?php echo ($vo["id"]); ?>" <?php if(($vo["id"]) == $info["parent_id"]): ?>selected="selected"<?php endif; ?>>
						|<?php echo (str_repeat("--",$vo["lev"])); echo ($vo["c_name"]); ?>
					</option><?php endforeach; endif; else: echo "" ;endif; ?>
			</select>
	<br />
	是否推荐:<input type="radio" name="isrec" value="1" 
			<?php if(($info["isrec"]) == "1"): ?>checked="checked"<?php endif; ?>		  
			/>是
			<input type="radio" name="isrec" value="0" 
			<?php if(($info["isrec"]) == "0"): ?>checked="checked"<?php endif; ?>
			/>否
	<br />
	<input type="hidden" name="id" value="<?php echo ($info['id']); ?>">
	<input type="submit" name="提交">
</form>

</body>
</html>